// ValidationAspects
// Written by Mike Saunders
// Released under Microsoft Public License (Ms-PL)
using ValidationAspects.Core;

namespace ValidationAspects.Sdk
{
	public static class Adapt<T, TValue>
	{
		public static IValidator<T> From(IValidator<TValue> validator)
		{
			Enforce.IsNotNull(validator, "validator");
			return new ValidatorAdaptor<T, TValue>(validator);
		}
	}
}